from django import template

register = template.Library()


@register.filter
def to_sex(value, arg='zhong'):
    change = {
        'zhong': ('女', '男'),
        'ying': ('Female', 'Male')
    }
    return change[arg][value]

